package bjfu.it.sun.chat;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class VoiceInput2Activity extends AppCompatActivity {
    Button return6bt;
    Button finish6bt;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_voice_input2);

        //        按钮“返回”点击事件
        return6bt=findViewById(R.id.return6);
        return6bt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent();
                intent.setClass(VoiceInput2Activity.this,MainActivity.class);
                startActivity(intent);
            }
        });
//        按钮“完成”点击事件
        finish6bt=findViewById(R.id.finish6);
        finish6bt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent();
                intent.setClass(VoiceInput2Activity.this,MainActivity.class);
                startActivity(intent);
            }
        });
    }
}